package com.baizhi.ncc.controller;

import com.baizhi.ncc.service.UserService;
import com.baizhi.ncc.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("user")
@CrossOrigin
public class UserControler {
    @Autowired
    private UserService us;

    @RequestMapping(value = "queryAllPage",method = RequestMethod.POST)
    @ResponseBody
    public Map<String,Object> queryAllPage(int page, int pageSize){
       return us.queryAllPage(page,pageSize);

    }

}
